Subscribe Us

Responsive Advertisement

Advertisement

1619B Squares and Cubes codeforces solution in cpp

 

1619B Squares and Cubes codeforces solution in cpp

by ujal roy



#include<bits/stdc++.h>

using namespace std;

main()

{

 unsigned long long int t,i,n,c,s;

   cin>>t;

   while(t--)

   {

      int co=0;

       cin>>n;


     co=(int)sqrt(n)+(int)cbrt(n)-(int)(sqrt(cbrt(n)));



     cout<<co<<endl;

   }

return 0;

}


Post a Comment

0 Comments